package com.example.studentmag1.service.impl;

import com.example.studentmag1.entity.Students;
import com.example.studentmag1.mapper.StudentsMapper;
import com.example.studentmag1.service.StudentsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.swing.*;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author admin
 * @since 2022-01-08
 */
@Service
public class StudentsServiceImpl extends ServiceImpl<StudentsMapper, Students> implements StudentsService {

    private StudentsMapper studentsMapper;
    @Override
    public boolean deleteByStudentId(String stuId) {
        if(studentsMapper.deleteByStudentId(stuId)){
            return true;
        }
        return false;
    }
}
